package forms

type PassWordLoginOldForm struct {
	Mobile    string `form:"mobile" json:"mobile" binding:"required,mobile"` //手机号码格式有规范可寻， 自定义validator
	PassWord  string `form:"password" json:"password" binding:"required,min=3,max=20"`
	Captcha   string `form:"captcha" json:"captcha" binding:"required,min=5,max=5"`
	CaptchaId string `form:"captcha_id" json:"captcha_id" binding:"required"`
}

type PassWordLoginForm struct {
	Phone    string `form:"phone" json:"phone" binding:"required,mobile"` //手机号码格式有规范可寻， 自定义validator
	PassWord string `form:"password" json:"password" binding:"required,min=3,max=20"`
}

type SmsLoginForm struct {
	Phone string `form:"phone" json:"phone" binding:"required,mobile"` //手机号码格式有规范可寻， 自定义validator
	Code  string `form:"code" json:"code" binding:"required,min=3,max=20"`
}

type OneClickRegForm struct {
	CToken     string `form:"c_token" json:"c_token" binding:"required"`
	NickName   string `form:"nickname" json:"nickname" binding:"required,min=1,max=6"`
	Birthday   string `form:"birthday" json:"birthday" binding:"required"`
	HeadImgUrl string `form:"headimgurl" json:"headimgurl"`
	Sex        int32  `form:"sex" json:"sex" binding:"required"`
}

type SmsSendForm struct {
	Phone string `form:"phone" json:"phone" binding:"required,mobile"` //手机号码格式有规范可寻， 自定义validator
}

type SetPasswordForm struct {
	Password string `form:"password" json:"password" binding:"required,min=3,max=20"` //手机号码格式有规范可寻， 自定义validator
}

type RegisterForm struct {
	Mobile   string `form:"mobile" json:"mobile" binding:"required,mobile"` //手机号码格式有规范可寻， 自定义validator
	PassWord string `form:"password" json:"password" binding:"required,min=3,max=20"`
	Code     string `form:"code" json:"code" binding:"required,min=6,max=6"`
}

type UpdateUserForm struct {
	Name     string `form:"name" json:"name" binding:"required,min=3,max=10"`
	Gender   string `form:"gender" json:"gender" binding:"required,oneof=female male"`
	Birthday string `form:"birthday" json:"birthday" binding:"required,datetime=2006-01-02"`
}

type UserInfoForm struct {
	UserId int32 `form:"user_id" json:"user_id" binding:"required,number"`
}
